package com.xAdmin.controller;

import com.xAdmin.service.AiService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("tongyi")
public class TongYiController {

    @Resource
    AiService aiService;


    @RequestMapping("testMessage")
    public String testMessage(String question) {
        return aiService.testMessage(question);
    }
}
